import sytResponse from '../request/syt'

export default {
  // 获取验证码
  getCodeApi(phone: any) {
    return sytResponse.get(`/api/user/passport/sendCode/${phone}`)
  },
  // 用户注册
  userRegistrationApi(userInfo: any) {
    return sytResponse.post(`/api/user/passport/register`, userInfo)
  },
  // 登录
  reqUserLogin(user: any) {
    return sytResponse.post('/api/user/passport/login', user)
  },
  // 退出登录
  logout() {
    return sytResponse.get('/api/user/passport/logout')
  },
  // 获取用户信息
  getUserInfoApi() {
    return sytResponse.get('/api/user/passport/auth/getUserInfo')
  }
}